@extends('layouts.app')

@section('content')

    {{--栏目列表--}}
    <el-row>
        <div class="house-title">
            栏目
            <el-button class="fr" size="small" type="primary" @click="addCate">新增栏目</el-button>
        </div>
        <div class="house-content">
            <el-row class="floor-list" v-for="(item, index) in table.list" :key="index">
                <el-col :span="14">@{{item.name}}</el-col>
                <el-col :span="10">
                    <el-link class="fr"
                             type="danger"
                             @click="deleteCate(item.id)"
                             style="margin-top:6px;margin-left: 10px;margin-right: 10px;">删除</el-link>
                    <el-link class="fr"
                             type="primary"
                             @click="editCate(item.id, item.name)"
                             style="margin-top:6px;margin-left: 10px;">编辑</el-link>
                    <el-link class="fr"
                             type="primary"
                             :href="'/ssq/detail?id=' + item.id"
                             style="margin-top:6px;">进入栏目</el-link>
                </el-col>
            </el-row>
        </div>
    </el-row>

@endsection

@section('js')
    <script src="/js/ssq/index.js"></script>
@endsection
